package pers.qianyu.module.core.domain.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import pers.qianyu.module.core.comm.*;

/**
 * @author mizzle rain
 * @date 2020-11-12 15:52
 */
@TableName("sys_user_role")
public class SysUserRolePO extends BaseEntity {
    private static final long serialVersionUID = -6681509428232773694L;
    private Long userId;
    private Long roleId;

    public SysUserRolePO() {
    }

    public SysUserRolePO(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "SysUserRolePO{" +
                "userId=" + userId +
                ", roleId=" + roleId +
                ", id=" + getId() +
                ", createTime=" + getCreateTime() +
                ", updateTime=" + getUpdateTime() +
                ", createdBy=" + getCreatedBy() +
                ", updatedBy=" + getUpdatedBy() +
                ", deleted=" + getDeleted() +
                '}';
    }
}
